//package com.vhall.autotest.api_test.service.cloudwise;
//
//import java.util.ArrayList;
//import java.util.HashMap;
//import java.util.List;
//import java.util.Map;
//
//import org.junit.Assert;
//
//import com.alibaba.fastjson.JSONArray;
//import com.alibaba.fastjson.JSONObject;
//import com.vhall.autotest.api_test.common.Constant;
//import com.vhall.autotest.api_test.common.ConstantCloudwise;
//import com.vhall.autotest.api_test.common.Http;
//import com.vhall.autotest.api_test.service.code.ICode;
//import com.vhall.autotest.api_test.service.code.IWebinarCode;
//
//public class CreateSite implements IWebinarCode{
//
//	private static final String createUserUrl = Constant.apiDomain + "/v2/site/create.json?access_token="+	GetToken.getToken_success(ConstantCloudwise.grant_type, ConstantCloudwise.username, ConstantCloudwise.password, ConstantCloudwise.client_id, ConstantCloudwise.client_secret);
//;
//	/*
//	 * 创建网站监控--未完成
//	 * 2016-5-25
//	 */
//	public static String createSite_success(String task_name,String url,String domain,String task_type,String frequency,String retry,String mointors,String class_id,String isAgent,String plugin_task_uselist_id,String email,String sms,String msn,String gtalk,String remind,String scope,String organization,
//			String user_ids) {
//		Http http = new Http();
//				Map<String, String> param = new HashMap<String, String>();
//				List<User> users = new ArrayList<User>();
//					User u = new User();
////					u.setUser_email(user_email);
////					u.setUser_name(user_name);
////					u.setUser_psw(user_psw);
////					u.setUser_roles(user_roles);
////					u.setOrganization(organization);
////					u.setUser_tel(user_tel);
////					u.setCountey(country);
////					u.setUser_qq(user_qq);
////					users.add(u);
////				String data = JSONArray.toJSON(users).toString();
////				param.put("access_token", access_token);
////				param.put("data", data);
//				System.out.println("param:" + param);
//				Map<String, String> result;
//				try {
//					result = http.post(createUserUrl, param);
//					String statusCode = result.get("statusCode");
//					String resultText = result.get("resultText");
//					System.out.println("statusCode:" + statusCode);
//					Assert.assertNotNull(statusCode);
//					Assert.assertNotNull(resultText);
//					Assert.assertTrue(String.valueOf(ICode.statusCodeSuccess).equals(statusCode));
//					JSONObject obj = JSONObject.parseObject(resultText);
//					System.out.println(obj);
//					String user_id = obj.getString("user_id");
//					Assert.assertTrue(obj.containsKey("user_id"));
//					return user_id;
//				} catch (Exception e) {
//					// TODO Auto-generated catch block
//					e.printStackTrace();
//				}
//					return null;
//			} 
//			
//
//	public static void main(String[] args) {
////		CreatUser.getUserLists_success(GetToken.getToken_success(ConstantCloudwise.grant_type, ConstantCloudwise.username, ConstantCloudwise.password, ConstantCloudwise.client_id, ConstantCloudwise.client_secret));
////		CreateSite.createSite_success("123testpost3@163.com", "sunwy3", "123456", "3", "8","13511111111","CN","");
//	}
//}
//
//
//class User{
//	private String user_name;
//	private String user_email;
//	private String user_psw;
//	private String user_roles;
//	private String user_tel;
//	private String user_qq;
//	private String countey;
//	private String organization;
//	public String getUser_name() {
//		return user_name;
//	}
//	public void setUser_name(String user_name) {
//		this.user_name = user_name;
//	}
//	public String getUser_email() {
//		return user_email;
//	}
//	public void setUser_email(String user_email) {
//		this.user_email = user_email;
//	}
//	public String getUser_psw() {
//		return user_psw;
//	}
//	public void setUser_psw(String user_psw) {
//		this.user_psw = user_psw;
//	}
//	public String getUser_roles() {
//		return user_roles;
//	}
//	public void setUser_roles(String user_roles) {
//		this.user_roles = user_roles;
//	}
//	public String getUser_tel() {
//		return user_tel;
//	}
//	public void setUser_tel(String user_tel) {
//		this.user_tel = user_tel;
//	}
//	public String getUser_qq() {
//		return user_qq;
//	}
//	public void setUser_qq(String user_qq) {
//		this.user_qq = user_qq;
//	}
//	public String getCountey() {
//		return countey;
//	}
//	public void setCountey(String countey) {
//		this.countey = countey;
//	}
//	public String getOrganization() {
//		return organization;
//	}
//	public void setOrganization(String organization) {
//		this.organization = organization;
//	}
//	
//	
//	
//}
